<!--SIF Implementation Specification 2.2-6 (March 17, 2008)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="http://www.sifinfo.org/infrastructure/2.x" xmlns:sif="http://www.sifinfo.org/infrastructure/2.x" elementFormDefault="qualified">
  <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="imports/xml/xml.xsd" />
  <xs:complexType name="AttendanceCodeInfoType">
    <xs:annotation>
      <xs:documentation>
							This object provides information about a particular attendance code, allows applications to synchronize each other's
							attendance code tables, or provides a dynamic list of attendance codes.
						</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AttendanceCode" type="xs:token">
        <xs:annotation>
          <xs:documentation>Locally defined code for attendance.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AttendanceType">
        <xs:annotation>
          <xs:documentation>Type of attendance code.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="Absent" />
            <xs:enumeration value="Tardy" />
            <xs:enumeration value="EarlyDeparture" />
            <xs:enumeration value="Partial" />
            <xs:enumeration value="Present" />
            <xs:enumeration value="Other" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="AttendanceStatus">
        <xs:annotation>
          <xs:documentation>Excused status of the attendance code.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="Excused" />
            <xs:enumeration value="Unexcused" />
            <xs:enumeration value="Unknown" />
            <xs:enumeration value="NA" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Description" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:documentation>The text description of the attendance code.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AbsenceValue" minOccurs="0" nillable="true">
        <xs:simpleType>
          <xs:restriction base="xs:decimal">
            <xs:annotation>
              <xs:documentation>The amount of absence represented by AttendanceCode, up to three decimal places.</xs:documentation>
            </xs:annotation>
            <xs:minInclusive value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
            <xs:fractionDigits value="3" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="UsedForDailyAttendance">
        <xs:annotation>
          <xs:documentation>Is this attendance code used for daily attendance?</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="Yes" />
            <xs:enumeration value="No" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="UsedForPeriodAttendance">
        <xs:annotation>
          <xs:documentation>Is this attendance code used for period attendance?</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="Yes" />
            <xs:enumeration value="No" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="SIF_Metadata" minOccurs="0" nillable="true" type="sif:SIF_MetadataType" />
      <xs:element name="SIF_ExtendedElements" minOccurs="0" nillable="true" type="sif:SIF_ExtendedElementsType" />
    </xs:sequence>
    <xs:attribute name="RefId" use="required" type="sif:RefIdType">
      <xs:annotation>
        <xs:documentation>The ID (GUID) that uniquely identifies this AttendanceCodeInfo entity.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="SchoolInfoRefId" use="required" type="sif:IdRefType">
      <xs:annotation>
        <xs:documentation>The ID (GUID) that identifies the school where the attendance code is used.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>

  <xs:element name="AttendanceCodeInfo" type="sif:AttendanceCodeInfoType" />

</xs:schema>